import request from '@/utils/request'

// 查询医师医嘱列表
export function listDoctorAdvice(query) {
  return request({
    url: '/business/doctorAdvice/list',
    method: 'get',
    params: query
  })
}

// 查询医师医嘱详细
export function getDoctorAdvice(id) {
  return request({
    url: '/business/doctorAdvice/' + id,
    method: 'get'
  })
}

// 新增医师医嘱
export function addDoctorAdvice(data) {
  return request({
    url: '/business/doctorAdvice',
    method: 'post',
    data: data
  })
}

// 修改医师医嘱
export function updateDoctorAdvice(data) {
  return request({
    url: '/business/doctorAdvice',
    method: 'put',
    data: data
  })
}

// 删除医师医嘱
export function delDoctorAdvice(id) {
  return request({
    url: '/business/doctorAdvice/' + id,
    method: 'delete'
  })
}
